<?php
/**
 * Created By PhpStorm
 * Author: patrick wu
 * Date: 2020/10/7
 * Time: 10:51
 */
namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\MultiTrait\ResponseTrait;

class BaseController extends Controller
{
    use ResponseTrait;

    protected $request;

    public function __construct(Request $request)
    {
        $this->request  =   $request;
        $this->request->merge($request->json()->all() ?? []);
    }
}

